package com.hrc.rpc.registry;


import com.hrc.rpc.spi.ExtensionLoader;

/**
 * 注册工厂
 */
public class RegistryFactory {

    public static RegistryService get(String registryService) {
        return ExtensionLoader.getInstance().get(registryService);
    }

    public static void init() {
        ExtensionLoader.getInstance().loadExtension(RegistryService.class);
    }
}
